I'm guessing judges are elected in California, hence the Judge in Paris' case had to put her back in. Otherwise, come election time, his opponent can attack the judge who "let Paris go."
I assume Sheriff is also an elected office, which is why I can't understand why he let her go in the first place.
The saddest thing about all of this is, it makes her even more famous than she was, and regardless of how she acts on the outside, deep down she has to be thrilled with it. She's getting major heat, that keeps her in the spotlight.